<!--

    Copyright (C) 2015 The Gravitee team (http://gravitee.io)
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
            http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<h2 mat-dialog-title>Promote the API</h2>

<mat-dialog-content class="promote__content">
  <gio-banner-info>
    Sharding tags
    <span gioBannerBody>The sharding tags of the promotion must exist in this environment.</span>
  </gio-banner-info>

  <div *ngIf="data.isApiUpdate">
    Since the API <code>{{ data.apiName }}</code> has already been promoted to
    <strong>{{ data.targetEnvironmentName }}</strong> environment, accepting this promotion will update it.
  </div>
  <div *ngIf="!data.isApiUpdate">
    Accepting this promotion will create a new API in <strong>{{ data.targetEnvironmentName }}</strong> environment.
  </div>
</mat-dialog-content>

<mat-dialog-actions class="actions">
  <button type="button" class="actions__cancelBtn" mat-flat-button [mat-dialog-close]="false">Cancel</button>
  <button type="submit" color="primary" mat-raised-button role="dialog" [mat-dialog-close]="{ accepted: true }">Accept</button>
</mat-dialog-actions>
